.content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;

  @media (min-width: 769px) {
    height: 83.5vh;
  }

  @media (max-width: 768px) {
    margin-top: 10px;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.scrollContainer {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
  -ms-overflow-style: auto; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transition: all 0.1s ease-in-out;

  /* 自定义滚动条样式 */
  &::-webkit-scrollbar {
    width: 6px;
    display: block;
  }

  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* 暗色模式下的样式 */
@media (prefers-color-scheme: dark) {
  .overlay {
    background-color: rgba(0, 0, 0, 0.65);
  }

  .scrollContainer {
    &::-webkit-scrollbar-track {
      background: #1f1f1f;
    }

    &::-webkit-scrollbar-thumb {
      background: #666;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #888;
    }
  }
}

/* 暗色模式下的遮罩层样式 */
@media (prefers-color-scheme: dark) {
  .overlay {
    background-color: rgba(0, 0, 0, 0.65);
  }
}

.reasoning {
  border-left: 4px solid #d9d9d9;
  padding-left: 20px;
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  color: #686868;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.scrollButton {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;

  &:hover {
    opacity: 0.8;
  }
}

.fadeIn {
  animation: fadeIn 0.3s forwards;
}

.fadeOut {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    bottom: 20px;
  }
  to {
    opacity: 1;
    bottom: 30px;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    bottom: 30px;
  }
  to {
    opacity: 0;
    bottom: 20px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .reasoning {
    background-color: #1f1f1f;
  }

  .scrollButton {
    background: #1890ff;
    border-color: #1890ff;

    &:hover {
      background: #40a9ff;
      border-color: #40a9ff;
    }
  }
}
